from selenium import webdriver
from selenium.webdriver.common.by import By
import time
from selenium.webdriver.support.select import Select
from time import  sleep
# 创建浏览器驱动对象
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Chrome()
# 加载web页面
driver.get("http://121.43.169.97:8848/pageA.html")
sleep(2)
# 滚动条拉到最底层
js="window.scrollTo(0,10000)" #0 x, 10000 y
# 调用
driver.execute_script(js)

# 滚动条拉到最底层
js2="window.scrollTo(0,0)" #0 x, 0 y
sleep(2)
# 调用
driver.execute_script(js2)

sleep(3)
driver.quit()